package info.nightbrest.agt.shared.rpc.transport;

import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.json.client.JSONObject;
import info.nightbrest.agt.client.AgtDispatcher;

/**
 * Created by IntelliJ IDEA.
 * User: Ermal
 * Date: 07.12.11
 * Time: 12:31
 */
public interface Serializer
{
	String serialize(JavaScriptObject input, AgtDispatcher.RpcDataFormat format) throws Exception;
	JSONObject deserialize(String input, AgtDispatcher.RpcDataFormat format) throws Exception;
}
